import { 

    API_EMPLOYEE_PERSONINFO,
    API_BIND_WECHAT,
    API_POSITION_POSITION,
    API_GET_WORK_WECHAT_ACCESS_TOKEN,
    API_EMPLOYEE_PERSONINFOOLD,
    API_EMPLOYEE_PERFECTINFONEW,
    API_EMPLOYEE_PERFECTINFOOLD,
    API_EMPLOYEE_OLDREALTIMEUPDATE,
    API_OCR_ACADEMIC_DEGREE,
    API_OCR_DIPLOMA_REGISTER,
    API_BASIC_CONFIG_INFO,API_EMPLOYEE_LOGIN,API_EMPLOYEE_VERIFY_SMS,API_EMPLOYEE_FACELOGIN,API_EMPLOYEE_UPDATEMOBILE,API_FE_EXPORT_OSS_PSP,WEB_ENUM,
    API_EMPLOYEE_CONTRACT,
    API_EMPLOYEE_GETATTACHMENT_ID,
    API_EMPLOYEE_SAVEATTACHEMENT,
    API_OCR_BANK,API_OCR_IDCARD,API_EMPLOYEE_AGE_BY_BIRTH,API_OCR_HUKOU,API_OCR_IDENTIFICATION_HOUSEHOLD,
    API_EMPLOYEE_WITHDRAW,
    API_EMPLOYEE_VERIFY,
    API_EMPLOYEE_IDCARD,
    API_EMPLOYEE_MOBILE_MATCH,
    API_KPI_LIST
} from '@/api';

const http = (uni as any).$uv.http

export const getBasicConfigInfo= (params ?: object, config ?: object) => http.get(API_BASIC_CONFIG_INFO, { params, ...config })
export const postLogin= (params ?: object, config ?: object) => http.post(API_EMPLOYEE_LOGIN, { ...params, ...config })

export const fetchUserinfo= (params ?: object, config ?: object) => http.get(API_EMPLOYEE_PERSONINFO, { params, ...config })
export const geApiPostionPostion= (params ?: object, config ?: object) => http.get(API_POSITION_POSITION, { params, ...config })
export const getWorkWechatAccessToken= (params ?: object, config ?: object) => http.post(API_GET_WORK_WECHAT_ACCESS_TOKEN, { ...params, ...config })
export const getWechatAccessToken= (params ?: object, config ?: object) => http.post(API_GET_WORK_WECHAT_ACCESS_TOKEN, { ...params, ...config })
export const postBindWechat= (params ?: object, config ?: object) => http.post(API_BIND_WECHAT, { ...params, ...config })
export const getEmplyeePersonInfoOld= (params ?: object, config ?: object) => http.get(API_EMPLOYEE_PERSONINFOOLD, { params, ...config })
export const putPerfectInfoNew = (params ?: object, config ?: object) => http.put(API_EMPLOYEE_PERFECTINFONEW, { ...params, ...config });
export const putPerfectInfoNewNoHandle = (params ?: object, config ?: object) => http.put(API_EMPLOYEE_PERFECTINFONEW, { ...params, ...config });

export const putPerfectInfoOld = (params ?: object, config ?: object) => http.put(API_EMPLOYEE_PERFECTINFOOLD, { ...params, ...config });
export const postEmplyeeOldRealTimeUpdate = (params ?: object, config ?: object) => http.post(API_EMPLOYEE_OLDREALTIMEUPDATE, { ...params, ...config });
export const postOCRAcademicDegree= (params ?: object, config ?: object) => http.post(API_OCR_ACADEMIC_DEGREE, { ...params, ...config })
export const postOCRDiplomaRegister= (params ?: object, config ?: object) => http.post(API_OCR_DIPLOMA_REGISTER, { ...params, ...config })
export const postFaceLogin= (params ?: object, config ?: object) => http.post(API_EMPLOYEE_FACELOGIN, { ...params, ...config })
export const fetchSMS= (params ?: object, config ?: object) => http.post(API_EMPLOYEE_VERIFY_SMS, { ...params, ...config })
export const putUpdateMobile= (params ?: object, config ?: object) => http.put(API_EMPLOYEE_UPDATEMOBILE, { ...params, ...config })
export const getFeExportOssPsp= (params ?: object, config ?: object) => http.get(API_FE_EXPORT_OSS_PSP, { ...params, ...config })
export const getWebEnumType= (params ?: object, config ?: object) => http.get(WEB_ENUM, { ...params, ...config })
export const getContract= (params ?: object, config ?: object) => http.get(API_EMPLOYEE_CONTRACT, { params, ...config })
export const getAttchementById= (params ?: object, config ?: object) => http.get(API_EMPLOYEE_GETATTACHMENT_ID, { params, ...config })
export const postSaveAttchement= (params ?: object, config ?: object) => http.post(API_EMPLOYEE_SAVEATTACHEMENT, { ...params, ...config })
export const postOCRBankCard= (params ?: object, config ?: object) => http.post(API_OCR_BANK, { ...params, ...config })
export const postOCRIdcard= (params ?: object, config ?: object) => http.post(API_OCR_IDCARD, { ...params, ...config })
export const postOCRHukouben= (params ?: object, config ?: object) => http.post(API_OCR_HUKOU, { ...params, ...config })
export const postOCRHouseHold= (params ?: object, config ?: object) => http.post(API_OCR_IDENTIFICATION_HOUSEHOLD, { ...params, ...config })
export const postEmplyeeWithdraw= (params ?: object, config ?: object) => http.post(API_EMPLOYEE_WITHDRAW, { ...params, ...config })
export const postForgetVerify= (params ?: object, config ?: object) => http.post(API_EMPLOYEE_VERIFY, { ...params, ...config })
export const getAgeByBirth= (params ?: object, config ?: object) => http.get(API_EMPLOYEE_AGE_BY_BIRTH, {params, ...config })
export const getMatchIdcard= (params ?: object, config ?: object) => http.get(API_EMPLOYEE_IDCARD, {params, ...config })
export const getMatchMobile= (params ?: object, config ?: object) => http.get(API_EMPLOYEE_MOBILE_MATCH, {params, ...config })
export const getKpiList = (params ?: object, config ?: object) => http.get(API_KPI_LIST, {params, ...config })

